#!/bin/bash
source commit_id.sh
git clone https://gitee.com/openeuler/cantian.git
git clone https://gitee.com/openeuler/cantian-connector-mysql.git
cd cantian && git checkout $CANTIAN_COMMITID && git apply --ignore-whitespace ../patch/cantian.patch && cd ..
cd cantian-connector-mysql && git checkout $CANTIAN_MYSQL_COMMITID && git apply --ignore-whitespace ../patch/cantian-connector-mysql.patch && cd ..
wget -c --no-check-certificate https://github.com/mysql/mysql-server/archive/refs/tags/mysql-8.0.26.tar.gz
tar -zxf mysql-8.0.26.tar.gz
mv mysql-server-mysql-8.0.26 cantian-connector-mysql/mysql-source
mkdir -p cantian_data

